import request2 from '@/utils/request2'
import { safetyApiUrl } from '@/api/config'

export default {
  /**
   * 查询（get）
   检查记录-PC-列表查看
   */
  findListByMainPc(params, data) {
    return request2({
      url: safetyApiUrl + '/inspection-rectification/findListByMainPc',
      method: 'post',
      params, data
    })
  },
  /**
   检查记录-查看详情
   */
  findById(params, data) {
    return request2({
      url: safetyApiUrl + '/inspection-rectification/findById/' + params.id,
      method: 'get',
      params, data
    })
  },
  /**
   检查记录-根据Id查看流程
   */
  findProcessById(params, data) {
    return request2({
      url: safetyApiUrl + '/inspection-rectification/findProcessById/' + params.id,
      method: 'get',
      params, data
    })
  },
  del(params) {
    return request2({
      url: safetyApiUrl + '/inspection-rectification/deleteById/' + params.id,
      method: 'get',
      params
    })
  },
  count(data) {
    return request2({
      url: safetyApiUrl + '/inspection-rectification/count',
      method: 'post',
      data
    })
  }
}